﻿<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>公排列表</title>
<link href="__PUBLIC__/admin/css/xc.min.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/xc.admin.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/admin/css/page.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/lib/iconfont/iconfont.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/admin/js/jquery.min.js"></script>
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.js"></script> 
<script type="text/javascript" src="__PUBLIC__/admin/js/xc.admin.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/layer/layer.js"></script>
<script type="text/javascript" src="__PUBLIC__/lib/My97DatePicker/WdatePicker.js"></script>
</head>
<body>
<nav class="breadcrumb mb10">
  <i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 会员管理 <span class="c-gray en">&gt;</span> 公排列表
  <a class="btn btn-success radius r mr-20 btn-shua" href="javascript:location.replace(location.href);" title="刷新" ><i class="Hui-iconfont">&#xe68f;</i></a>

</nav>
<div class="pd-20">
  <form action="{:U('User/userExport')}" method="post" id="myfrom1">
  <input type="hidden" name="order_by" value="us_id">
  <input type="hidden" name="sort" value="desc">
<!--  <div class="text-c"> 搜索-->
<!--    <span class="select-box inline">-->
<!--      <select class="select" name="xcinput">-->
<!--        <option value="us_uid">会员编号</option>-->
<!--        <option value="us_name">会员姓名</option>-->
<!--        <option value="us_phone">手机号</option>-->
<!--        <option value="us_pid">推荐人ID</option>-->
<!--        <option value="gr_name">会员等级</option>-->
<!--      </select>-->
<!--    </span>-->
<!--    <input type="text" id="keyword" name="keyword" placeholder="请输入搜索内容" class="input-text" style="width:250px;">-->
<!--    <input type="text" onfocus="WdatePicker()" value="{$timegap.beg}" id="stime" name="stime" class="input-text Wdate" style="width:120px;"> - -->
<!--		<input type="text" onfocus="WdatePicker()" value="{$timegap.end}" id="etime" name="etime" class="input-text Wdate" style="width:120px;">-->
<!--    <button type="button" class="btn btn-success radius" onClick="ajax_get_table('myfrom1',1)"><i class="Hui-iconfont">&#xe665;</i> 搜会员</button>-->
<!--		<button class="btn btn-primary radius"><i class="Hui-iconfont">&#xe603;</i> 导出数据</button>-->
<!--  </div>-->
  <div class="mt-10">
    <!--列表加载-->
    <div class="bDiv" style="height: auto;" id="ajax_return"> </div>
  </div>
  </form>
</div>

<script type="text/javascript">
$(document).ready(function(){
	ajax_get_table('myfrom1',1);
});
// ajax 抓取页面
function ajax_get_table(tab,page){
	cur_page = page; //当前页面 保存为全局变量
	$.ajax({
		type : "POST",
		url:"__MODULE__/User/ajaxPlatoonList/p/"+page,//+tab,
		data : $('#'+tab).serialize(),// 你的formid
		success: function(data){
			$("#ajax_return").html('');
			$("#ajax_return").append(data);
		}
	});
}
//实现删除会员
function userDelete(obj,uid){
	if(uid == ''){
		layer.msg('参数错误', {icon: 2});
		return false;
	}
	$.ajax({
		type : 'post',
		url : '__MODULE__/User/userDel',
		data : {uid:uid},
		dataType : 'json',
		success : function(res){
			if(res.status == 1){
				$(obj).parents("tr").remove();
				layer.msg(res.info,{icon:1});
			}else{
				layer.msg(res.info, {icon: 2});
			}
		},
		error : function(XMLHttpRequest, textStatus, errorThrown) {
			layer.alert('网络失败，请刷新页面后重试',{icon:2});
		}
	})
}
//回调函数 
function call_back_fun(v){
	//layer.closeAll(); // 关闭窗口
	ajax_get_table('myfrom1',cur_page);
}
</script>
</body>
</html>